@extends('master')

@section('title', '书籍列表')

@section('content')
<div class="weui_cells weui_cells_access">
	@foreach($products as $product)
	<a href="/product/{{$product->id}}" class="weui_cell">
        <div class="weui_cell_hd"><img src="{{$product->preview}}" alt="" class="bk_preview"></div>
        <div class="weui_cell_hd weui_cell_primary">
        	<div style="margin-bottom: 10px">
        	    <span class="bk_title">{{$product->name}}</span>
        	    <span class="bk_price" style="float: right">￥{{$product->price}}</span>
        	</div>
        	<p class="bk_summary">{{$product->summary}}</p>
        </div>
	</a>
	@endforeach
</div>
@endsection

@section('my-js')
@endsection